import request from '@/utils/request'

// 查询专案稽核事项列表
export function listInformation(query) {
  return request({
    url: '/mine/projectAuditMatter/list',
    method: 'get',
    params: query
  })
}

// 查询专案稽核事项详细 
export function getInformation(pId) {
  return request({
    url: '/mine/projectAuditMatter/' + pId,
    method: 'get'
  })
}

// 新增专案稽核事项
export function addInformation(data) {
  return request({
    url: '/mine/projectAuditMatter',
    method: 'post',
    data: data
  })
}

// 修改专案稽核事项
export function updateInformation(data) {
  return request({
    url: '/mine/projectAuditMatter',
    method: 'put',
    data: data
  })
}

// 删除专案稽核事项
export function delInformation(pId) {
  return request({
    url: '/mine/projectAuditMatter/' + pId,
    method: 'delete'
  })
}

// 导出专案稽核事项
export function exportInformation(query) {
  return request({
    url: '/mine/projectAuditMatter/export',
    method: 'get',
    params: query
  })
}

// 调取 专案管理稽核各项下拉框操作
export function getInformationValue(field) {
  return request({
    url: '/mine/projectAuditMatter/optionValue/'+ field,
    method: 'get'
  })
}

// 调取 工号查询操作   //  操作
export function getuserIdValue(listMgr) {
  return request({
    url: '/system/user/getEmpById/'+ listMgr,
    method: 'get'
  })
}

// 调取 权限查询操作   //  操作
export function getPower(currentState) {
  return request({
    url: '/mine/projectAuditMatter/getPower/'+ currentState,
    method: 'get'
  })
}
// 更新信息
export function updateImproveMatter(data) {
  return request({
    url: '/mine/projectAuditMatter/updateImproveMatter',
    method: 'put',
    data: data
  })
}


